package com.nhncorp.pleiades.protocol;

import com.nhncorp.pleiades.hadoop.VersionedProtocol;

public interface EventServiceProtocol extends VersionedProtocol {
  
  public static final long versionID = 1L;
  
  public boolean register(EventMetaData metaData, long timeout);
  
  public boolean renewLease(EventMetaData metaData, long timeout);
  
  public boolean drop(EventMetaData metaData);
  
  public boolean write(EventMetaData metaData);
  
  public boolean write(EventMetaData[] metaDatas);
  
  public boolean take(EventMetaData metaData);
    
  public boolean read(EventMetaData metaData);
  
  public boolean isEventManagerReady();
  
}
